<?php

/*
*   狗类     可继承动物类的属性或者方法
*/

//Dog extents Animal   Dog  继承 Animal
class Dog extends Animal{
	public $name = '泰迪';
	public $color = '黄色';
	public function eat(){
		echo '泰迪不好吃';
	}
}
